﻿using System;
using ZenMoney.Core.Container;
using ZenMoney.Core.Entities;
using ZenMoney.Core.Services;
using log4net.Config;

namespace ZenMoney.Client
{
	class Program
	{
		static void Main()
		{			
			XmlConfigurator.Configure();

			var service = Container.Instance.GetInstance<ICommonService>();

			var user = new User
			{
				Email = "user1@zenmoney.com",
				Password = "password"
			};

			var category = new Category
			{
				Title = "Food",
				OperationType = OperationType.Expense,
				User = user
			};

			service.Save(category);

			Console.ReadLine();
		}
	}
}
